package bitmap
{
	import flash.display.Bitmap;
	import flash.display.BitmapData;
	import flash.display.Sprite;
	import flash.filters.BlurFilter;
	import flash.geom.Point;
	import flash.geom.Rectangle;
	
	public class Bitmapfilter extends Sprite
	{
		public function Bitmapfilter()
		{
			super();
			init();
		}
		
		public function init():void {
			var bmd:BitmapData = new BitmapData(80,30,false,0xffcc00);
			var rect:Rectangle = new Rectangle(10,10,60,10);
			bmd.fillRect(rect,0xff0000);
			
			var pt:Point = new Point();
			var filter:BlurFilter = new BlurFilter();
			bmd.applyFilter(bmd,rect,pt,filter);
			
			var bm:Bitmap = new Bitmap(bmd);
			this.addChild(bm);
		}
	}
}